package com.ruoyi.system.mapper.trade;

import com.ruoyi.system.domain.db.basic.BasicMaterials;
import com.ruoyi.system.domain.db.trade.TradeMaterialUsage;
import com.ruoyi.system.domain.dto.MaterialOrderDto;
import com.ruoyi.system.domain.dto.MaterialStoreDto;
import com.ruoyi.system.domain.dto.MaterialUsageDto;
import com.ruoyi.system.domain.vo.MaterialUsageVo;

import java.util.List;

public interface TradeMaterialUsageMapper {

    // 增删改查
    public void insertTradeMaterialUsage(TradeMaterialUsage tradeMaterialUsage);

    // 查询某id的使用量
    public List<MaterialUsageDto> selectTradeMaterialUsageById(Long materialId);

    // 查询所有
    public List<MaterialUsageDto> selectAllTradeMaterialUsage();

    // 获取所有货物的剩余量
    public List<MaterialStoreDto> selectAllMaterialStore(BasicMaterials basicMaterials);

}
